﻿using LitJson;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Text;

namespace PPTHelper
{
    [Serializable]
    class DataInfo
    {
        public string FileName { get; set; }
        public int SlidesCount { get; set; }
        public int SlideIndex { get; set; }
        public int ClickCount { get; set; }
        public int ClickIndex { get; set; }
        public string Time { get; set; }    //播放时长       
        public int PresentationElapsedTime { get; set; }
        public int SlideElapsedTime { get; set; }
        public string NotesText { get; set; }   //备注        
        public bool IsWpp { get; set; } 

        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.AppendLine($"文件名：{FileName}");
            sb.AppendLine($"当前页：{SlideIndex}/{SlidesCount}");
            sb.AppendLine($"动画步骤：{ClickIndex}/{ClickCount}");
            sb.AppendLine($"播放时长：{Time}");
            sb.AppendLine($"PresentationElapsedTime：{PresentationElapsedTime}");
            sb.AppendLine($"SlideElapsedTime：{SlideElapsedTime}");
            sb.AppendLine($"备注：{NotesText}");
            return sb.ToString();
        }

        public string ToJson()
        {
            return JsonMapper.ToJson(this);
        }

    }

}
